package com.event;

/**
 * @Description: Event事件监听 需SpringBoot启动类, 否则无法注入事件监听, 无法调用
 * @Author: LiHaiChao
 * @Date: 2022/1/11 17:19:42
 * @Version: 1.0
 */
public class main {

    public static void main(String[] args) {
        System.out.println("发送事件");
        SpringContextHolder.publishEvent(new DemoEvent("send demo."));
    }

}
